package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 后台园区区域管理表
 * </p>
 *
 * @author ct
 * @since 2020-06-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CrmAreaManage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 园区区域名称
     */
    @TableField(value = "park_area_name",strategy = FieldStrategy.NOT_NULL)
    private String parkAreaName;

    /**
     * 占地面积
     */
    @TableField(value = "cover_area",strategy = FieldStrategy.NOT_NULL)
    private Double coverArea;

    /**
     * 负责人
     */
    @TableField(value = "area_principal",strategy = FieldStrategy.NOT_NULL)
    private String areaPrincipal;

    /**
     * 联系方式
     */
    @TableField(value = "area_phone",strategy = FieldStrategy.NOT_NULL)
    private String areaPhone;

    /**
     * 园区地址
     */
    @TableField(value = "park_address",strategy = FieldStrategy.NOT_NULL)
    private String parkAddress;

    /**
     * 经度
     */
    @TableField("longitude")
    private double longitude;

    /**
     * 纬度
     */
    @TableField("latitude")
    private double latitude;

    /**
     * 创建人
     */
    @TableField("create_user_id")
    private String createUserId;

    /**
     * 修改人
     */
    @TableField("update_user_id")
    private String updateUserId;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    /**
     * 是否已删除，默认0，0未删除，1已删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private String attachmentIds;

    @TableField(exist = false)
    private List<PubAttachment> attachmentList;


}
